package com.yuju.hotel.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.hotel.dao.IRoomRepairDao;
import com.yuju.hotel.dao.entity.RoomRepair;
import com.yuju.hotel.dao.mapper.RoomRepairMapper;
import com.yuju.hotel.model.RoomRepairModel;
import com.yuju.persist.base.mapper.BaseMapper;

/**
 * 
 * 类名：RoomRepairRepairDaoImpl  <br />
 *
 * 功能：
 *
 * @author : zhousc <br />
 * @Date : 2017年11月30日 下午1:57:36  <br />
 * @version : 1.1 <br />
 */
@Repository
public class RoomRepairDaoImpl  extends AbstractBaseDao<RoomRepairModel, RoomRepair, String> implements IRoomRepairDao{
	@Autowired
	private RoomRepairMapper roomRepairMapper;
	
	@Override
	public BaseMapper<RoomRepair, String> getMapper() {
		// TODO Auto-generated method stub
		return roomRepairMapper;
	}
	/**
	 * 
	 * 功能:房态中查询当前房间是否维修状态 <br/>
	 * 
	 * 重写：zhousc <br/>
	 * 
	 * @Date ：2017年12月16日 下午12:36:47<br/>
	 * 
	 * @param roomRepairModel
	 * @return <br/>
	 * @see com.yuju.hotel.dao.IRoomRepairDao#selectRepairStatus(com.yuju.hotel.model.RoomRepairModel)
	 */
	@Override
	public int selectRepairStatus(RoomRepairModel roomRepairModel) {
		int selectRepairStatus = roomRepairMapper.selectRepairStatus(getBeanMap(roomRepairModel));
		return selectRepairStatus;
	}
}
